jQuery(document).ready(function () {
    App.init(); // initlayout and core plugins
});
/*jQuery.extend({
 postEx:function(requestUrl, sendData, successCallback, errorCallback) {
 if (typeof errorCallback === 'undefined'){
 errorCallback = ajaxErrorEx;
 }
 $.ajax({
 url: requestUrl,
 data: sendData,
 type: "post",
 cache: false,
 dataType: 'json',
 timeout: 30000,
 success: successCallback,
 error: errorCallback
 });
 }
 });*/
$(function () {
    //.ajaxError事件定位到document对象，文档内所有元素发生ajax请求异常，都将冒泡到document对象的ajaxError事件执行处理
    $(document).ajaxError(
        //所有ajax请求异常的统一处理函数，处理
        function (event, xhr, options, exc) {
            if (xhr.status == 'undefined') {
                return;
            }
            switch (xhr.status) {
                case 403:
                    // 未授权异常
                    parent.layer.msg('系统拒绝：您没有访问权限');
                    break;
                case 404:
                    parent.layer.msg('请求服务器出错');
                    break;
                case 500:
                    parent.layer.msg('服务器错误');
                    break;
                default:
                    parent.layer.msg('服务器未知错误');
                    break;
            }
        }
    );
});
function dshow(data, wid, hei) {
    wid = wid || 140;
    hei = hei || 70;
    var d = dialog({
        title: '提示信息',
        width: wid,
        height: hei,
        buttons: {
            '确定': function () {
                $(this).dialog("close");
            }
        }
    });
    d.content(data);
    d.showModal();
}
$(document).on("mouseover", ".alert_tips", function () {

    layer.tips(tip_help[$(this).attr("tip_title")], this, {
        tips: [2, '#3595CC'],
        time: 100000
    });

});
$(document).on("mouseout", ".alert_tips", function () {

    var index = layer.tips();
    layer.close(index);

});
$(document).on('click',"#closeShclDefault",function(){
    $("#shclDefault").hide();
});